package com.atguigu.gmall.user.client;

import com.atguigu.gmall.model.user.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author : zjj
 * @date : 2021/2/5 15:01
 */
@FeignClient(name = "service-user")
public interface UserFeignClient {
    /**
     * 查询用户的地址
     * @param userId    用户id
     * @return          用户的地址
     */
    @GetMapping("/api/user/inner/findUserAddressListByUserId/{userId}")
    List<UserAddress> findUserAddressListByUserId(@PathVariable String userId);


}
